from typing import Optional
from pydantic import BaseModel

class AirplaneBase(BaseModel):
    PlaneModel: str
    Shape: str
    Company: str
    MinSeatCount: int
    MaxSeatCount: int
    PhotoUrl: str

    class Config:
        from_attributes = True

class AirplaneCreate(AirplaneBase):
    pass

class Airplane(AirplaneBase):
    AirplaneId: int

    class Config:
        from_attributes = True 